use std::sync::Arc;

use crate::{database::db_service::DbService, handler::crates_file::CratesOptions};

#[derive(Clone)]
pub struct Context {
    pub db_service: Arc<DbService>,
    pub crates_options: CratesOptions,
}

impl Context {
    pub fn new(crates_options: CratesOptions, db_service: Arc<DbService>) -> Self {
        Context {
            db_service,
            crates_options,
        }
    }
}
